package com.qf.data.goods.vo.output;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ken.mybatis.annotation.ToMore;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 规格展示的数据对象
 * description:
 * author: Ken
 * 公众号：Java架构栈
 */
@Data
public class GuigeOutput implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;
    @TableField("guige_name")
    private String guigeName;
    private Integer valCount;
    private Date createTime;

    @TableField(exist = false)
    @ToMore(type = GuigeValOutput.class)
    private List<GuigeValOutput> vals;
}
